package com.cdtye.shuoh.service.device;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdtye.shuoh.domain.device.entity.DeviceInfo;
import com.cdtye.shuoh.domain.device.vo.DeviceInfoVo;
import org.springframework.stereotype.Service;

@Service
public interface DeviceInfoService extends IService<DeviceInfo> {
    public DeviceInfo findOneByNodeId(String nodeId);

    public int deleteByDeviceId(String deviceId);

    public DeviceInfo findOneByDeviceId(String deviceId);

    public int updateDeviceInfoByNodeId(DeviceInfo deviceInfo);

    public int updateDeviceInfo(DeviceInfo deviceInfo);

    public IPage<DeviceInfo> pageList(DeviceInfoVo vo);

    public DeviceInfo insertOrUpdateByNodeId(DeviceInfo deviceInfo);

    public int deleteByNodeId(String nodeId);
}
